define(['app'], function(app) {
	'use strict';

	// 实例化方法
	var factory = function(Http) {

		// 返回信息
		return {
			// 获取首页数据
			get_distribution : function(callback) {
				
				var data = new Object();
				
				data.saleman = [{name:'制造商1',fouce:'4744',trade:'77143',sale:'4328262',count:'94222'}
				,{name:'制造商2',fouce:'4724',trade:'77453',sale:'482362',count:'98322'}
				,{name:'制造商3',fouce:'4734',trade:'77343',sale:'482262',count:'94542'}
				,{name:'制造商4',fouce:'4734',trade:'77343',sale:'482262',count:'94542'}
				,{name:'制造商5',fouce:'4734',trade:'77343',sale:'482262',count:'94542'}
				];
				
				data.city = [{name:'上海',fouce:'4744',trade:'77143',sale:'4328262',count:'94222'}
				,{name:'北京',fouce:'4724',trade:'77453',sale:'482362',count:'98322'}
				];

				// 函数回调
				if (callback)
					callback(data);
			}
			
		};
	}

	factory.$inject = [ 'Http' ];
	return app.registerService("Distribution", factory);
});